package mes.kanban.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 用户管理（与角色ROLE建立管理表EMS_USER_ROLE)
 * @author zongrui.liu
 */
@Entity
@Table(name="MES_USER")
public class MesUser implements Serializable {

	private static final long serialVersionUID = -1614914209258702327L;

	@Id
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	@Column(name="ID")
	private String id;
	
	/**
	 * 用户工号
	 */
	@Column(name="USER_CODE",nullable = false)
	private String userCode;
	
	/**
	 * 用户名称
	 */
	@Column(name="USER_NAME",nullable = false)
	private String userName;
	
	/**
	 * 用户密码
	 */
	@Column(name="PASS_WORD",nullable = false)
	private String passWord;
	
	/**
	 * 用户职称
	 */
	@Column(name="joblevel")
	private String jobLevel;
	
	/**
	 * 用户部门（存储部门DEPT的ID）
	 */
	@Column(name="USER_DEPTID")
	private String userDeptId;
	
	@Column(name="USER_DEPTNAME")
	private String userDeptName;
	
	/**
	 * 用户邮箱
	 */
	@Column(name="EMAIL")
	private String email;
	
	/**
	 * 用户手机
	 */
	@Column(name="PHONE")
	private String phone;
	
	
	/**
	 * 用户手机(1:生效  -1:失效)
	 */
	@Column(name="STATUS",nullable = false)
	private Integer status;
	
	/**
	 * 安全验证用
	 */
	@Column(name="salt")
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	private String salt;
	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public String getJobLevel() {
		return jobLevel;
	}

	public void setJobLevel(String jobLevel) {
		this.jobLevel = jobLevel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUserDeptId() {
		return userDeptId;
	}

	public void setUserDeptId(String userDeptId) {
		this.userDeptId = userDeptId;
	}

	public String getUserDeptName() {
		return userDeptName;
	}

	public void setUserDeptName(String userDeptName) {
		this.userDeptName = userDeptName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public void setSalt(String salt) {
		this.salt = salt;
	}
	
	public String getSalt() {
		return salt;
	}
	
}
